export const ColumnProps = [
    {
        title: '路由名',
        dataIndex: 'name',
        width: 300,
        ellipsis: true
    },
    {
        title: '路由路径',
        dataIndex: 'path',
        width: 200,
        ellipsis: true
    },
    {
        title: '打开方式',
        dataIndex: 'method',
        width: 200,
        ellipsis: true
    },
    {
        title: '组件地址',
        dataIndex: 'component',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300,
        ellipsis: true
    },
]


export const RuleProps = {
    name: [{ required: true, message: '路由名不能为空' }],
    path: [{ required: true, message: '路由路径不能为空' }],
    method: [{ required: true, message: '打开方式不能为空' }],
    component: [{ required: true, message: '组件地址不能为空' }],
}


export const FormProps = {
    id: '',
    parentId: '',
    name: '',
    path: '',
    method: '',
    component: '',
}


export const FilterItems = [
    {
        type: 'input',
        label: '路由名',
        key: 'name',
        placeholder:'请输入路由名',
        maxLength: 20
    },
]


export const FormItems = [
    {
        type: 'treeSelect',
        label: '父级节点',
        key: 'parentId',
        isShow: true,
        data: [ ],
        placeholder:'请选择父级节点',
    },
    {
        type: 'input',
        label: '路由名',
        isShow: true,
        key: 'name',
        placeholder:'请输入路由名',
        maxLength: 20
    },
    {
        type: 'input',
        label: '路由路径',
        isShow: true,
        key: 'path',
        placeholder:'请输入路由路径',
        maxLength: 50
    },
    {
        type: 'select',
        label: '打开方式',
        isShow: true,
        key: 'method',
        data: [],
        placeholder:'请选择打开方式',
    },
    {
        type: 'input',
        label: '组件地址',
        isShow: true,
        key: 'component',
        placeholder:'请输入组件地址',
    }
]


export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
}
